package com.itheima.lambda;

import java.util.Arrays;

public class LambdaDemo1 {
    public static void main(String[] args) {
        String[] strArr={"a","ab","ada","aaaa","aaqaaa","aahjaaaa"};

        Arrays.sort(strArr,(String o1, String o2)->o2.length()-o1.length());
        System.out.println(Arrays.toString(strArr));
    }
}
